import { Button } from "@/components/ui/button"

interface ResultPageProps {
  score: number
  onPlayAgain: () => void
}

export default function ResultPage({ score, onPlayAgain }: ResultPageProps) {
  return (
    <div className="text-center">
      <h2 className="text-4xl font-bold mb-6 text-white">Game Over</h2>
      <p className="text-2xl mb-8 text-white">Your final score: {score}</p>
      <Button onClick={onPlayAgain} className="bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded">
        Play Again
      </Button>
    </div>
  )
}

